package com.scwatch.ext.repository;

import com.scwatch.ext.domain.Advertisement;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.Repository;

public interface AdvertisementDao extends Repository<Advertisement, Integer>{
     Page<Advertisement> findAll(Specification<Advertisement> spec, Pageable pageable);

    Advertisement save(Advertisement bean);

    Advertisement findOne(Integer id);

    Advertisement delete(Advertisement bean);

}
